﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Subject.ascx.vb" Inherits="Control_Subject_Subject" %>

<script type="text/javascript">
    function setSubjectParentValues() {
        var text = '';
        var id = '';
        $("select#<%=lbxSubject.ClientID()%>").find("option:selected").each(function () {
            t = $(this).text();
            text += t + ';';
            id += $(this).val() + ';';
        });
        window.parent.settxtSubjectValue(text, id);
        window.parent.tb_remove();
        return false; //prevent Submit
    }

    function ComfirmDialog(strText, value, ObjectIdClick, ID, Type) {
    }

</script>
<asp:UpdatePanel ID="upnlSubject" runat="server">
<ContentTemplate>
<div class="BoxField" style="background-color:#ffffff; padding-top: 8px;">
    <div class="HeadTitle">        
        <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
    </div>
    <div class="Error">
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    </div>
    <div class="Error" id = "showError" runat = "server" visible = "false">
        <asp:Label ID="lblStatus" CssClass="Error" runat="server" Text="Cảnh báo: Dữ liệu đã tồn tại trong hệ thống." />
    </div>
    <div class="DivRow">
        <div class="DivLabel">
            <asp:Label ID="lblGroupname" CssClass="TextLabel" runat="server" Text="Nhập chủ đề: " /><span
                class="fieldRequired"></span>
        </div>
        <div class="DivTextBox">
            <asp:TextBox ID="txtSubject" CssClass="TextBox" runat="server" Text="" Width="250px" />
            &nbsp;<asp:Button ID="btnSave" runat="server" Text=" Lọc " CssClass="btn" />
        </div>
    </div>    
    <div class="DivRow" style="padding-top: 10px">
        <div class="DivTextBox" style="float: left">
            <asp:ListBox ID="lbxSubject" runat="server" Height="234px" SelectionMode="Single" Width="250px"></asp:ListBox>
        </div>
        <div class="DivLabel" style="float: left">
            &nbsp;&nbsp;<asp:Button ID="btnSelect" CssClass="btn" runat="server" CausesValidation="False" Text="Chọn" /><br /><br />
            &nbsp;&nbsp;<asp:Button ID="btnEdit" CssClass="btn" runat="server" Text="Sửa" CausesValidation="False" /><br /><br />
            &nbsp;&nbsp;<asp:Button ID="btnDelete" CssClass="btn" runat="server" Text="Xóa" CausesValidation="False" />
        </div>
    </div>  
</div>
<div style="display: none">
    <asp:HiddenField ID="hidID" Value="0" runat="server" />    
</div>

</ContentTemplate>
</asp:UpdatePanel>